package BloodTimeHybernateDO;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

import dao.api.DataObject;

/**
 * 
 * @author Manuel A. Quintero V.
 * 
 */
@Entity
@Table(name = "configuracion")
@Proxy(lazy = false)
public class ConfiguracionDO implements DataObject{



	// -------------------------------
	// Identificador auto-incremental
	// -------------------------------

	private int id;

	// -------------------------
	// Datos de la Configuracion
	// -------------------------

	private String clave;
	private String tipo;
	private String valor;

	// ---------------------------------------------------------------------------------------------------------------------------------------

	public ConfiguracionDO() {
		// Empty
	}

	@Override
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="configuracion_sequence")
	@SequenceGenerator(sequenceName = "configuracion_sequence", name = "configuracion_sequence",allocationSize=1)
	public int getId() {
		return id;
	}

	@Override
	public void setId(int id) {
		this.id = id;
	}

	public String getClave() {
		return clave;
	}

	public void setClave(String clave) {
		this.clave = clave;
	}

	public String getTipo() {
		return tipo;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	public String getValor() {
		return valor;
	}

	public void setValor(String valor) {
		this.valor = valor;
	}

}
